<!DOCTYPE html>
<html lang="en">
<head>
    <!-- <meta charset="UTF-8"> -->
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <title><%- title %></title>
    <%- include common %>
</head>
<body>
    <%- include('head',{title:'home'}) %>

    <h2><%- title%></h2>

    <% if(username){  %>
        <h2>用户名：<%- username %></h2>
        <p>登录时间：<%- logintime %></p>
        <button class="btn btn-info" onclick="location.href='/htmlEjs/movie'">电影列表</button>
        <button class="btn btn-danger" onclick="location.href='/htmlEjs/logout'">退出登录</button>
    <% }else{ %>
        <button class="btn btn-primary" onclick="location.href='/htmlEjs/login'">登录</button>
        <button class="btn btn-success" onclick="location.href='/htmlEjs/register'">注册</button>
    <% }  %>

    <%- include foot %>
</body>
</html>